<script setup lang="ts">
  defineProps<{
    data: any[];
  }>();

  const columns = [
    {
      title: '药企名称',
      dataIndex: 'companyName',
    },
    {
      title: '药品名称',
      dataIndex: 'drugName',
    },
    {
      title: '药品规格',
      dataIndex: 'specification',
    },
    {
      title: '使用人数',
      dataIndex: 'elderNum',
      align: 'center' as const,
    },
  ];

  const scroll = {
    y: 200,
  };
</script>

<template>
  <a-table
    class="h-full"
    :columns="columns"
    :data="data"
    :bordered="false"
    :pagination="false"
    :sticky-header="true"
    :scroll="scroll"
    :scrollbar="true"
  />
</template>

<style lang="less" scoped></style>
